﻿using Alipay.AopSdk.Core.Domain;
using SmartWMS.Common.ResponseOutput;
using SmartWMS.Server.BasicsDatumServer.UnitServer.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Server.BasicsDatumServer.UnitServer
{
    public interface IUnitServers: ITransientServer
    {
        /// <summary>
        /// 单位列表（查询）
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Response<List<UnitDtoPes>>> GetUnitAsync(UnitPageDto dto);
        /// <summary>
        /// 添加单位
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Response<bool>> AddUnitAsync(UnitDtoPes dto);
        /// <summary>
        /// 删除单位数据
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Response<bool>> DelUnit(UnitDtoPes dto);
        /// <summary>
        /// 批量删除方法
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Response<bool>> DeletesUnit(UnitDtoPes dto);

        /// <summary>
        /// 反填单位数据方法
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Response<UnitDtoPes>> ReckUnit(UnitDtoPes dto);
        /// <summary>
        /// 修改单位数据
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Response<bool>> UpdateUnitAsync(UnitDtoPes dto);

    }
}
